package com.bbva.kyfb.kyfbdto.firmas.fachada.v01;

import java.io.Serializable;
import java.util.ArrayList;

import javax.xml.bind.annotation.XmlRootElement;

/**
 * Informacion del historico de los componentes de una referencia.
 *
 * @author xe35008
 * @version 1.0
 */
@XmlRootElement
public class InfoFileResponse implements Serializable{
	
	/** The Constant serialVersionUID. */
	private static final long serialVersionUID = 1L;


	/** Lista de los componentes. */
	private ArrayList<InfoFile> infoFiles;
	
	/** Codigo de error si lo ha habido. */
	private String codError;
	
	/** Numero total de componentes en historico. */
	private int totalComponentes;
	
	/**
	 * Instantiates a new info file response.
	 */
	public InfoFileResponse() {}

	/**
	 * Gets the info files.
	 *
	 * @return the infoFiles
	 */
	public final ArrayList<InfoFile> getInfoFiles() {
		return infoFiles;
	}

	/**
	 * Sets the info files.
	 *
	 * @param infoFiles the infoFiles to set
	 */
	public final void setInfoFiles(final ArrayList<InfoFile> infoFiles) {
		this.infoFiles = infoFiles;
	}

	/**
	 * Gets the cod error.
	 *
	 * @return the cod_error
	 */
	public final String getCodError() {
		return codError;
	}

	/**
	 * Sets the cod error.
	 *
	 * @param codError the new cod error
	 */
	public final void setCodError(final String codError) {
		this.codError = codError;
	}

	/**
	 * Gets the total componentes.
	 *
	 * @return the totalComponentes
	 */
	public final int getTotalComponentes() {
		return totalComponentes;
	}

	/**
	 * Sets the total componentes.
	 *
	 * @param totalComponents the totalComponentes to set
	 */
	public final void setTotalComponentes(final int totalComponents) {
		this.totalComponentes = totalComponents;
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "InfoFileResponse [infoFiles=" + infoFiles + ", codError="
				+ codError + ", totalComponentes=" + totalComponentes + "]";
	}	
	
}
